home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 February / EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso / earcd / patches / ip20t21a.lha / IFX20to21a_Patch / Patches2.lha / Rexx / AutoFX / EOT_Punch.ifx.pre < prev    next >
Text File  |  1995-04-17  |  708b  |  37 lines

  1. /*
  2.  * EOT_Punch.ifx.pre
  3.  * Written by Thomas Krehbiel
  4.  *
  5.  * Animated Punch (Warp) Effect.
  6.  *
  7.  * Inputs:
  8.  *    Word(Arg(1),1) = Sequence number (?)
  9.  *    Word(Arg(1),2) = Total number of frames (N)
  10.  *
  11.  * Returns:
  12.  *    0 if successful, non-zero on failure
  13.  *
  14.  */
  15.  
  16. OPTIONS RESULTS
  17.  
  18. base  = 'Autofx_Punch_'
  19.  
  20. start = GETCLIP(base||'Start')
  21. end   = GETCLIP(base||'End')
  22.  
  23. IF start = "" THEN start = 0
  24. IF end   = "" THEN end = 100
  25.  
  26. Gadget.1 = 'INTEGER 150  5 50 14 "Starting Strength:"' start
  27. Gadget.2 = 'INTEGER 150 20 50 14 "Ending Strength:"' end
  28. Gadget.3 = 'END'
  29.  
  30. NewComplexRequest '"Punch"' Gadget 250 50
  31. IF rc ~= 0 THEN EXIT rc
  32.  
  33. CALL SETCLIP(base||'Start', result.1)
  34. CALL SETCLIP(base||'End', result.2)
  35.  
  36. EXIT
  37.